using System.Windows.Controls;
using System.Windows.Navigation;

namespace Departemen
{
    public partial class Index : Page
    {
        public Index()
        {
            InitializeComponent();
            DepartemenViewModel.OnSearchCompleted = (x) =>
                                          {
                                              this.DataContext = (DepartemenViewModel)x;
                                          };
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

    }
}
